package com.mini.repository;

import com.mini.model.BusinessChancePhone;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author shixiaopeng  on 2020/12/2
 */
@Repository
public interface BusinessChancePhoneRepository extends JpaRepository<BusinessChancePhone, Long>, JpaSpecificationExecutor<BusinessChancePhone> {

    BusinessChancePhone findByPhone(String phone);

    List<BusinessChancePhone> findByChanceId(Long chanceId);
}
